package com.lian.hope.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@Builder
@Data
@Schema(description = "志愿者活动VO")
public class VolunteerActivitiesVO {
    @Schema(description = "活动主键")
    private Long id;
    @Schema(description = "活动名称")
    private String activityName;
    @Schema(description = "活动简介")
    private String brief;
    @Schema(description = "活动图片")
    private String imgUrl;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Schema(description = "活动开始时间")
    private LocalDateTime startTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Schema(description = "活动结束时间")
    private LocalDateTime endTime;
    @Schema(description = "活动地址")
    private String address;
    @Schema(description = "已报名志愿者数量")
    private Integer registeredVolunteers;
    @Schema(description = "所需志愿者数量")
    private Integer requireVolunteers;
    @Schema(description = "0:招募中 1:进行中 2:已结束等")
    private Integer status;
    @Schema(description = "项目详情html格式")
    private String activityDescHtml;
    @Schema(description = "联系人手机号码")
    private String contactPhone;
    @Schema(description = "联系人头像url")
    private String contactAvatarUrl;
    @Schema(description = "联系人昵称")
    private String contactNickname;
}
